home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
UTILITY
/
DO1002.ARJ
/
INITCOM.SCR
< prev
next >
Wrap
Text File
|
1991-10-29
|
2KB
|
49 lines
.pg wi full clr cy
COMMAND NAME»gray«: »%t« InitCommunications »ye«
/INITCOM {port} {baud} [{parity} {data} {stop} {string}]
/cw
»%t«InitCommunications»#« initializes the built-in communications
functions. »wh«It must be run »+re«before»wh« any other communications
command.»#«
»cy«{port} »ye«1»#« or »ye«2»#« indicating the »gr«COM:»#« port to initialize
»cy«{baud} »#«The speed of the connection: »ye«300 1200 2400 9600»#«
»cy«{parity} »#«(»ma«O»#«)dd, (»ma«E»#«)ven, (»ma«N»#«)one. Defaults to "»ye«N»#«"
»cy«{data} »#«Data bits: »ma«7»#« or »ma«8»#«. Defaults to "»ye«8»#«"
»cy«{stop} »#«Stop bits: »ma«1»#« or »ma«2»#«. Defaults to "»ye«1»#«"
»cy«{string} »#«Initialization string sent to modem. Defaults to »ye«none»#«.
.pg clr
Here are some examples:
»wh«
/INITCOM 1 9600
»#«
Initializes COM»ye«1»#«: to »wh«9600»#« baud, »wh«No»#« parity, »wh«8»#« data bits, »wh«1»#« stop bit
will »re«NOT»#« send an initialization string to the
modem.
.pg
»wh« /INITCOM 2 2400 E 7 1
»#«
Initializes COM»ye«2»#«: to »wh«2400»#« baud, »wh«Even»#« parity, »wh«7»#« data bits, »wh«1»#« stop bit
will »re«NOT»#« send an initialization string to the modem.
.pg
»wh« /INITCOM 1 1200 N 8 1 ATS0=1
»#«
Initializes COM»ye«1»#«: to »wh«1200»#« baud, »wh«No»#« parity, »wh«8»#« data bits, »wh«1»#« stop bit
sends "»cy«ATS0=1»#«" to initialize modem.
»gr«NOTE»cy«: »#«If you include a later parameter, you must »ye«explicitly»#« state
all previous parameters even if they are the defaults.
.pg
If »%t«DO»#« is unable to initialize the COM: port, it will abort with the
message "»cy«Cannot Open Serial Port»#«". Check the parameters and COM:
port to assure that they are correct for your configuration.
/ENDEXEC